@tailwind base;
@tailwind components;
@tailwind utilities;

/* normalize css starts here */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* normalize css ends here */


html {
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
    color: #222;
    user-select: none;
}

body {
    width: 400px;
    height: 600px;
    background-color: #F2F2F7;
    /* iOS default background color */

}

.app {
    height: 100%;
    display: flex;
    align-items: center;
    /* justify-content: center; */
    flex-direction: column;
    text-align: center;
    padding: 10px;
    /* 隐藏滚动条的通用方法 */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 和 Edge */

    &::-webkit-scrollbar {
        /* WebKit 浏览器，如 Chrome 和 Safari */
        display: none;
    }

    /* 保持内容可滚动 */
    overflow-y: scroll;
    /* 垂直滚动 */
    overflow-x: hidden;
    /* 隐藏水平滚动条，如果不需要的话 */
}

.title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 12px;
}

code {
    font-size: 12px;
    font-family: inherit;
    background-color: rgba(254, 237, 185, .3);
    padding: 2px 4px;
    border-radius: 2px;
}

.counter-label {
    font-size: 12px;
    margin-bottom: 5px;
}

.counter {
    font-size: 36px;
    font-weight: 700;
}

.button-container {
    margin-top: 15px;
}

.button {
    border: 0;
    display: inline-block;
    padding: 10px 20px;
    margin-right: 4px;
    margin-left: 4px;
    background-color: bisque;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    transition: transform .2s ease;
    user-select: none;
}

.button:focus {
    outline: none;
}

.button:hover {
    transform: scale(1.1);
}

.switch-container {
    /* font-size: 12px; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 4px 0;
    /* Add vertical padding */
}


.group-container {
    @apply bg-white shadow-sm;
    width: 100%;
    border-radius: 10px;
    /* Add rounded corners */
    /* background-color: #fff; */
    padding: 10px;
    padding-top: 6px;
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.group-title {
    text-align: left;
    /* Align the text to the left */
    font-size: 18px;
    /* Increase the font size */
    color: #333;
    /* Change the text color */
    font-weight: bold;
    /* Make the text bold */
}

f-accordion::part(header) {
    @apply cursor-pointer flex justify-between rounded-lg p-2 border border-gray-200 hover:bg-gray-100;
}

f-accordion::part(content) {
    @apply overflow-hidden duration-300;
}

f-accordion::part(icon) {
    @apply w-6 h-6 ml-auto transition-transform duration-300 transform;
}

.btn-disabled {
    @apply disabled:opacity-50 disabled:cursor-not-allowed;
}